package cn.org.donald.framework.service;

import cn.org.donald.framework.pojo.dto.PageDto;
import cn.org.donald.framework.pojo.vo.MenuTreeVo;
import cn.org.donald.pojo.entity.Menu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Donald
 * @since 2020-11-09
 */
public interface SysMenuService extends IService<Menu> {

    List<MenuTreeVo> findTree(PageDto<Menu> pageDto);

    List<MenuTreeVo> findTreeByRoleIds(Long...ids);

    List<MenuTreeVo> findTreeByNotRoleId(Long id);

    List<Menu> findByParentId(Long id);
}
